//
// Created by jyc on 2021/10/2.
//

#include "RenderPassReflection.h"

namespace Bonnie{

}
Bonnie::RenderPassReflection::Field &
Bonnie::RenderPassReflection::addInput(const std::string &name, const std::string &desc) {
    return addField(name,desc,Field::Visibility::Input);
}

Bonnie::RenderPassReflection::Field &
Bonnie::RenderPassReflection::addField(const std::string &name, const std::string &desc,
                                       Bonnie::RenderPassReflection::Field::Visibility v) {
    mFields.emplace_back(name,desc,v);
    return mFields.back();
}

Bonnie::RenderPassReflection::Field &
Bonnie::RenderPassReflection::addOutput(const std::string &name, const std::string &desc) {
    return addField(name,desc,Field::Visibility::Output);
}
